package com.example.strategy.controller;

import com.example.strategy.processor.BaseVipProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author panghu
 * @version 1.0.0
 * @createTime 2023年07月26日 21:42:00
 * @Description 测试测试
 */
@RestController
public class VipController {

    @Autowired
    private BaseVipProcessor baseVipProcessor;


    @PostMapping("/{type}/addVip")
    public String userRechargeMember(@PathVariable String type, @RequestBody Map<String, Object> userMaps) {
        String res = baseVipProcessor.execute(type, userMaps);
        return res;
    }


}
